'use strict';

const Controller = require('egg').Controller;

class WeatherController extends Controller {
  async index() {
    const { ctx, service } = this;
    const content = await service.weather.query();
    const result = await service.work.send(content);
    ctx.body = result;
  }
}

module.exports = WeatherController;
